package cn.wenhe9.yygh.order.client;

import cn.wenhe9.yygh.model.order.OrderCountQueryVo;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.Map;

/**
 * @author DuJinliang
 * 2022/4/9
 */
@Component
@FeignClient(value = "service-order", path = "/api/order/orderInfo")
public interface OrderFeignClient {
    /**
     * 获取订单统计数据
     * @param orderCountQueryVo OrderCountQueryVo
     * @return Map<String, Object>
     */
    @GetMapping("/inner/countMap")
    public Map<String, Object> getCountMap(@RequestBody OrderCountQueryVo orderCountQueryVo);
}
